#include<bits/stdc++.h>
using namespace std;
const int maxn = 1e5+5;
int n,cnt=1;
int r[maxn];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>r[i];
    }
    sort(r+1,r+n+1);
    //for(int i=1;i<=n;i++) cout<<r[i]<<' ';
    int sum[n+2];
    sum[1]=0;
    sum[n+1]=0x3f3f3f3f;
    int p=1,q=2;
    int ans=n;
    while(q<=n){
        if(r[p]==r[q]) q++;
        else if(r[p]<r[q]) p++,q++,ans--;
    }
    cout<<ans<<'\n';
}